package com.my.service;

import java.util.List;
import java.util.Map;

import com.my.enums.CommonOperatorEnum;
import com.my.exception.ServiceException;
import com.my.utils.SimplePage;

public abstract interface BaseService {
	public abstract <ModelType> int deleteById(ModelType paramModelType) throws ServiceException;

	public abstract <ModelType> int add(ModelType paramModelType) throws ServiceException;

	public abstract <ModelType> ModelType findById(ModelType paramModelType) throws ServiceException;

	public abstract <ModelType> List<ModelType> findByBiz(ModelType paramModelType,
			Map<String, Object> paramMap) throws ServiceException;

	public abstract <ModelType> int modifyById(ModelType paramModelType) throws ServiceException;

	public abstract int findCount(Map<String, Object> paramMap) throws ServiceException;

	public abstract <ModelType> List<ModelType> findByPage(SimplePage paramSimplePage, String paramString1,
			String paramString2, Map<String, Object> paramMap) throws ServiceException;

	public abstract <ModelType> int save(Map<CommonOperatorEnum, List<ModelType>> paramMap)
			throws ServiceException;
}